<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="Entity.*"%>
<%@page import="Dao.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<link href="<%=request.getContextPath() %>/css/backstage.css" rel="stylesheet"type="text/css" />
<%
List<Video> vdlist=new ArrayList<Video>();
if(session.getAttribute("videoByLabel_session")!=null){
	vdlist=(List)session.getAttribute("videoByLabel_session");
	session.removeAttribute("videoByLabel_session");
}
%>
<body>
<div class="header">
<h1>&emsp;&emsp;&emsp;<%=session.getAttribute("label_session") %></h1>
</div>

<div class="body">
<table border="1" width="70%" align="center">

<%
for(Video vd:vdlist){
	System.out.println(vd.toString());
%>
<tr>
<!-- <td>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;</td> -->
<td rowspan="2" align="left" width="300px" height="200px"><img alt="" src=<%=vd.getPicture_path() %> height="200px" width="300px"></td>
<td><%=vd.getVideo_name() %></td>
<td align="center" rowspan="2">
<form action="../videoplay" method="post">
<input type="hidden" name="video_id" value=<%=vd.getVideo_id() %>>
<input type="hidden" name="video_path" value=<%=vd.getVideo_path() %>>
<input type="hidden" name="video_name" value=<%=vd.getVideo_name() %>>
<input type="submit" value="查看">
</form>
</td>
</tr>
<tr>
<td align="left"><%=vd.getBrief_introduce() %></td>
</tr>
<%} %>
</table>
</div>
</body>
</html>